Optimal. Leaf size=134 \[ \frac {(A (3-2 m)-B (2 m+5)) \cos (e+f x) (a \sin (e+f x)+a)^m \, _2F_1\left (2,m+\frac {1}{2};m+\frac {3}{2};\frac {1}{2} (\sin (e+f x)+1)\right )}{16 c^2 f (2 m+1) \sqrt {c-c \sin (e+f x)}}+\frac {(A+B) \cos (e+f x) (a \sin (e+f x)+a)^m}{4 f (c-c \sin (e+f x))^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.33, antiderivative size = 134, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {2972, 2745, 2667, 68} \[ \frac {(A (3-2 m)-B (2 m+5)) \cos (e+f x) (a \sin (e+f x)+a)^m \, _2F_1\left (2,m+\frac {1}{2};m+\frac {3}{2};\frac {1}{2} (\sin (e+f x)+1)\right )}{16 c^2 f (2 m+1) \sqrt {c-c \sin (e+f x)}}+\frac {(A+B) \cos (e+f x) (a \sin (e+f x)+a)^m}{4 f (c-c \sin (e+f x))^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 68
Rule 2667
Rule 2745
Rule 2972
Rubi steps
\begin {align*} \int \frac {(a+a \sin (e+f x))^m (A+B \sin (e+f x))}{(c-c \sin (e+f x))^{5/2}} \, dx &=\frac {(A+B) \cos (e+f x) (a+a \sin (e+f x))^m}{4 f (c-c \sin (e+f x))^{5/2}}+\frac {\left (B c \left (-\frac {5}{2}-m\right )-A c \left (-\frac {3}{2}+m\right )\right ) \int \frac {(a+a \sin (e+f x))^m}{(c-c \sin (e+f x))^{3/2}} \, dx}{4 c^2}\\ &=\frac {(A+B) \cos (e+f x) (a+a \sin (e+f x))^m}{4 f (c-c \sin (e+f x))^{5/2}}+\frac {\left (\left (B c \left (-\frac {5}{2}-m\right )-A c \left (-\frac {3}{2}+m\right )\right ) \cos (e+f x)\right ) \int \sec ^3(e+f x) (a+a \sin (e+f x))^{\frac {3}{2}+m} \, dx}{4 a c^3 \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ &=\frac {(A+B) \cos (e+f x) (a+a \sin (e+f x))^m}{4 f (c-c \sin (e+f x))^{5/2}}+\frac {\left (a^2 \left (B c \left (-\frac {5}{2}-m\right )-A c \left (-\frac {3}{2}+m\right )\right ) \cos (e+f x)\right ) \operatorname {Subst}\left (\int \frac {(a+x)^{-\frac {1}{2}+m}}{(a-x)^2} \, dx,x,a \sin (e+f x)\right )}{4 c^3 f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ &=\frac {(A+B) \cos (e+f x) (a+a \sin (e+f x))^m}{4 f (c-c \sin (e+f x))^{5/2}}+\frac {(A (3-2 m)-B (5+2 m)) \cos (e+f x) \, _2F_1\left (2,\frac {1}{2}+m;\frac {3}{2}+m;\frac {1}{2} (1+\sin (e+f x))\right ) (a+a \sin (e+f x))^m}{16 c^2 f (1+2 m) \sqrt {c-c \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 6.87, size = 8147, normalized size = 60.80 \[ \text {Result too large to show} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.49, size = 0, normalized size = 0.00 \[ {\rm integral}\left (-\frac {{\left (B \sin \left (f x + e\right ) + A\right )} \sqrt {-c \sin \left (f x + e\right ) + c} {\left (a \sin \left (f x + e\right ) + a\right )}^{m}}{3 \, c^{3} \cos \left (f x + e\right )^{2} - 4 \, c^{3} - {\left (c^{3} \cos \left (f x + e\right )^{2} - 4 \, c^{3}\right )} \sin \left (f x + e\right )}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \sin \left (f x + e\right ) + A\right )} {\left (a \sin \left (f x + e\right ) + a\right )}^{m}}{{\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 1.04, size = 0, normalized size = 0.00 \[ \int \frac {\left (a +a \sin \left (f x +e \right )\right )^{m} \left (A +B \sin \left (f x +e \right )\right )}{\left (c -c \sin \left (f x +e \right )\right )^{\frac {5}{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \sin \left (f x + e\right ) + A\right )} {\left (a \sin \left (f x + e\right ) + a\right )}^{m}}{{\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\left (A+B\,\sin \left (e+f\,x\right )\right )\,{\left (a+a\,\sin \left (e+f\,x\right )\right )}^m}{{\left (c-c\,\sin \left (e+f\,x\right )\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________